package com.aef.utils;

/**
 * 自定义请求状态码
 * @author ScienJus
 * @date 2015/7/15.
 */
public enum ResultStatus {
    SUCCESS(0, "成功"),
    USERNAME_OR_PASSWORD_ERROR(-1, "openid为空"),
    USER_NOT_FOUND(-1002, "用户不存在"),
    USER_NOT_LOGIN(-1003, "用户未登录"),
	USER_OPENIDNULL(-1, "数据不完整"),
	USER_OPENIDERROR(4003, "openid错误"),
	USER_JSONERROR(1002, "数据不完整"),
	USER_PAYOPENIDRROR(1003, "OPENID为空"),
	USER_MONEYRROR(1004, "金额为空"),
	USER_KEYRROR(1005, "商户号为空"),
	USER_PAYKEYRROR(1006, "支付秘钥为空"),
	SIGN_ERROR(1007, "接口返回错误"),
	/*NO_AUTH(1008, "发放失败，此请求可能存在风险，已被微信拦截"),
	SENDNUM_LIMIT(1009, "该用户今日领取红包个数超过限制"),
	ILLEGAL_APPID(1010, "非法appid，请确认是否为公众号的appid，不能为APP的appid"),
	MONEY_LIMIT(1011, "红包金额发放限制"),
	SEND_FAILED(1012, "红包发放失败,请更换单号再重试"),
	FATAL_ERROR(1013, "openid和原始单参数不一致"),
	CA_ERROR(1014, "CA证书出错，请登录微信支付商户平台下载证书"),*/
	USER_NUMERROR(1001, "输入的金额不符");

    /**
     * 返回码
     */
    private int code;

    /**
     * 返回结果描述
     */
    private String message;

    ResultStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
